Skip to content

Enable semantic voice activity detection option #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 21, 2025

Conversation

ShivangiReja
Copy link
Collaborator

Fixes: #543

The method TurnDetectionOptions.CreateSemanticVoiceActivityTurnDetectionOptions was originally marked as internal to simplify the previous release and allow for iterative development.

This PR updates the method to public, making it accessible to users who want to configure conversation sessions using semantic VAD (Voice Activity Detection).

@@ -11,3 +11,4 @@ namespace OpenAI.Realtime;
[CodeGenType("RealtimeResponseUsage")] public partial class ConversationTokenUsage { }
[CodeGenType("RealtimeToolType")] public readonly partial struct ConversationToolKind { }
[CodeGenType("DotNetRealtimeVoiceIds")] public readonly partial struct ConversationVoice { }
[CodeGenType("RealtimeSemanticVadTurnDetectionEagerness")] public readonly partial struct SemanticEagernessLevel { }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can use a visitor to generate these rather than having to maintain stubs here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I totally agree with this. We’ve been maintaining separate generator stubs per client, and switching to a visitor would make it much easier to manage these going forward. I’ve created an issue to track this: #550, and we’ll look into addressing it as part of that. Thanks for the suggestion!

namespace OpenAI.Realtime
{
[Experimental("OPENAI002")]
public readonly partial struct SemanticEagernessLevel : IEquatable<SemanticEagernessLevel>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Extensibile!

@ShivangiReja ShivangiReja merged commit aa0baf8 into openai:main Jul 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants